package com.example.adminbase.domain;

import org.apache.shiro.crypto.hash.Md5Hash;

public class EncryptUtil {

    public static final String PASSWORD_SALT = "SHIRO:MD5-SALT";

    public static String encryptPassword(String plainText) {
        return new Md5Hash(plainText, PASSWORD_SALT).toHex();
    }
}
